<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	
	<body>
		
	</body>
	
	<script>
		//按位与
		var a = 3 & 5;
		
		//  011
		//  101
		//  001
		
		console.log(a);
		
		//按位或
		var b = 3 | 5;
		//  011
		//  101
		//  111
		
		console.log(b);
		
		//按位异或
		
		var a = 2;
		console.log(a<<3);
		
		
	</script>
	
	
</html>



